package com.cqw.datamodel;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-11-15 16:47
 * @Description:
 */
public class Test2 {

    public static void main(String[] args) {
        //计算1-100的和
        int sum = 0;
        int count = 100;
        sum = (count + 1) * 100 / 2;
        System.out.println(sum);
    }

}
